package com.zelix;

import java.util.*;

public class vu extends tu {

    iu m[];
    int n;

    public vu(String s, kt kt, iu aiu[], ux ux1) {
        super(s, kt, ux1);
        b(aiu);
    }

    iu a(int k) {
        return m[k];
    }

    int a(iu iu1) {
        if (super.l == null) {
            int k;
            super.l = new Hashtable((int) ((double) n * 1.5D));
            for (k = 0; k < n; k++) {
                super.l.put(m[k], super.j.a(k));
            }
        }
        Object obj = super.l.get(iu1);
        if (obj != null)
            return ((Integer) obj).intValue();
        else
            return -1;
    }

    boolean i() {
        return super.k < n;
    }

    String j() {
        return m[super.k++].u();
    }

    public void a(iu aiu[]) {
        b(aiu);
        e();
        d();
    }

    void b(iu aiu[]) {
        int k;
        Vector vector;
        int l;
        k = aiu.length;
        vector = new Vector(k);
        for (l = 0; l < k; l++) {
            if (aiu[l].H())
                vector.addElement(aiu[l]);
        }
        n = vector.size();
        m = new iu[n];
        vector.copyInto(m);
        Arrays.sort(m);
        super.l = null;
        h();
    }
}